﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yao
{
    public class WebConfig
    {
        public static string SourceSite
        {
            get
            {
                if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["SourceSite"]))
                {
                    throw new BusinessException("配置SourceSite");
                }
                return ConfigurationManager.AppSettings["SourceSite"];
            }
        }
        /// <summary>
        /// 版本
        /// </summary>
        public static string Version
        {
            get
            {
                if (string.IsNullOrEmpty(ConfigurationManager.AppSettings["Version"]))
                {
                    throw new BusinessException("配置Version");
                }
                return ConfigurationManager.AppSettings["Version"];
            }
        }
    }
}
